<?php



function getUsers()
{
	$users=array();
	
	//read the file
	$data = file_get_contents($_SERVER['DOCUMENT_ROOT']."/../data/usuarios.txt"); 
	//create array separate by new line
	$convert = explode("\n", $data);
		
	for ($i=0;$i<count($convert)-1;$i++) 
	{
		$data=explode(',',$convert[$i]);
	    foreach($data as $value)
			$users[$i][]=$value; 	
	}		
	return $users;
}

function getUser($id)
{
	$user=array();
	
	return $user;
}